package com.imooc.exception;

import com.imooc.enums.ResultEnum;

public class WechatProductException extends RuntimeException{
    private Integer code;

    public WechatProductException(ResultEnum resultEnum){
        super(resultEnum.getMessage());

        this.code = resultEnum.getCode();
    }
    public WechatProductException(Integer code, String message){
        super(message);
        this.code=code;
    }
}
